﻿/***************************************************************************
//* Foxit Software Inc.
//* Copyright(C) 2005-2012, all rights reserved.
//*
//* The following code is copyrighted and contains proprietary information
//* and trade secrets of Foxit Software Inc.                                                      *
***************************************************************************/
/**
* PDF 文档信息类;
*/
define(function (require, exports, module) {
    require('../DataLevel.js');
    FXREADER.PDFData.DocPropertiesJsonFormat = {
        docpropertyinfo: "dppinfo",
        properties: "ppt",
        author: "atr",
        creator: "ctr",
        producer: "pdr",
        title: "title",
        subject: "sub",
        keywords: "kwd",
        creationData: "ctd",
        modData: "mdd",
        version: "ver"
    }
    var DocPropertiesDataFmt = FXREADER.PDFData.DocPropertiesJsonFormat;

    var CPDF_DocProperties = function (jsonDocPropertiesData) {

        this.m_JsonDocPropertiesData = jsonDocPropertiesData;

        this.GetAuthor = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.author];
        }
        this.GetCreator = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.creator];
        }
        this.GetProducer = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.producer];
        }
        this.GetTitle = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.title];
        }
        this.GetSubject = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.subject];
        }
        this.GetKeywords = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.keywords];
        }
        this.GetCreationDate = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.creationData];
        }
        this.GetModifyDate = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.modData];
        }
        this.GetVersion = function () {
            return this.m_JsonDocPropertiesData[DocPropertiesDataFmt.version];
        }
    }
    FXREADER.PDFData.CPDF_DocProperties = CPDF_DocProperties;
    return FXREADER.PDFData.CPDF_DocProperties;
});